<script setup>
import { ref } from 'vue'
import MousePos from './components/MousePos.vue';

const showMouse = ref(true);
const toggleMouse = () => {
  showMouse.value = !showMouse.value;
}

</script>

<template>
  <div>
    <MousePos v-if="showMouse" />
    <button @click="toggleMouse">切换显示</button>
  </div>
</template>

<style scoped>

</style>